import getlink from '@/apis/getapi.js'

let pub_zhiding = {
  state:{
    data:''
  },
  mutations:{
    pub_zhiding(state,payload){
      state.data = payload.arrdata
    }
  },
  actions:{
    getpub_zhiding(context,payload){
      // console.log(context);
      getlink(payload.url).then((ok) =>{
        // console.log(ok.data.data)
        context.commit("pub_zhiding",{arrdata:ok.data.data})
      })
    }
  },
  getters:{

  }
}

export default pub_zhiding